feat: autonomous 3-2-1 backup system (centralized brains, strongest secret scanner, hard-fail)#2
Merged
Merged
Conversation
Self-hosting backup engine: one ckis-manifest.json classifies every path (track/regenerable/secret/sensitive/snapshot); three rings of autonomy (session-end push, daily systemd safety net, passive health line); plug-and-play restore on a fresh machine/OS. Zero heavy deps (bash/git/jq/ rsync/flock). Pure-bash test suite (94 assertions). Generic example manifest + README so anyone can implement their own. Adds a scoped CI workflow and a README section. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
…-fail, reconcile floor Sync the sanitized backup framework to v2: - Strongest secret scanner: entropy-gated tokens + PEM body-proximity (real secrets, not prose/placeholder mentions), .git/config + filename coverage, .ckis-secret-allow escape valve; new ckis-secret-audit (whole-system). - Centralized brain aggregation (brains-sync): every project's memory subdir regardless of tool or visibility; discovery = registry ∪ filesystem scan. - Reconciling timer as the tool-agnostic real-time floor (daily -> 15min, manifest-templated); no inotify dependency. - Hard-fail observability: failure markers, backup-all exits non-zero, doctor shows 🔴 FAILED vs benign drift (fixes silent-success). - Physical mirror excludes .git so no .git/config credential reaches the drive. - Clean-room restore test; example manifest + README updated; 12 test suites green. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A small, dependency-light, self-hosting backup framework that gives a multi-repo / knowledge-base / dotfiles setup the 3-2-1 rule, runs itself, and restores plug-and-play on a fresh machine. You describe what to back up in one JSON manifest; the scripts do the rest. Zero hard deps beyond
bash/git/jq/rsync/flock.Highlights
inotify), and a passive one-line health banner (🔴 FAILED vs ⚠ drift)..git/configremote-URL credentials andclass=secretfilenames;.ckis-secret-allowescape valve. Plus a whole-systemckis-secret-audit..brain/-style subdir, regardless of which agent made it or its own visibility, into one private repo; discovery = registry ∪ filesystem scan..gitso no credential reaches the drive.Quality
Pure-bash test harness, 12 suites green (
bash tests/run.sh); CI runs the gate on every change. Fully sanitized (no personal paths/identifiers).